#include <assert.h>
#include "Engine.h"

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
	Engine* engine = Engine::Ins();

	engine->Init(hInstance, hPrevInstance, lpCmdLine, nCmdShow);

	while(!engine->toQuit)
		engine->Work();

	engine->Release();

	return engine->getWParam();
}